import 'package:flutter/material.dart';

import 'package:get/get.dart';

import '../controllers/auth_test_controller.dart';

class AuthTestView extends GetView<AuthTestController> {
  const AuthTestView({super.key});

  @override
  Widget build(BuildContext context) {
    final controller = Get.put(AuthTestController());
    return Scaffold(
      appBar: AppBar(title: const Text('AuthTest'), centerTitle: true),
      body: Container(
        margin: EdgeInsets.fromLTRB(16.0, 8.0, 16.0, 8.0),
        width: double.infinity,
        child: Column(children: [_buildAuthTest()]),
      ),
    );
  }

  Widget _buildAuthTest() {
    return ElevatedButton(
      onPressed: () {
        controller.auth();
      },
      child: Text('Auth'),
    );
  }
}
